package ldh.fx.adminfx.commpont;

import javafx.scene.Scene;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;
import javafx.stage.StageStyle;

public class LDialog extends StackPane {

    private Stage owner = null;
    private Stage newStage = new Stage();
    private Scene scene = null;

    public LDialog(String title) {
        newStage.setTitle(title);
        newStage.initStyle(StageStyle.TRANSPARENT);
        scene = new Scene(this, 800, 600);
        scene.setFill(null);
    }

    public void show() {
        newStage.show();
    }

    public void close() {
        newStage.close();
    }
}
